package com.atguigu.lease.common.exception;


import com.atguigu.lease.common.result.ResultCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

//自定义异常,包括枚举
@Data
@AllArgsConstructor
@NoArgsConstructor

public class LeaseException extends RuntimeException{
    //获取用户自定义的枚举类型

    private ResultCodeEnum  resultEnum;

}
